package cn.wen.yinxiu.member.server.protocol.login;

import cn.wen.yinxiu.member.server.protocol.Command;
import cn.wen.yinxiu.member.server.protocol.Packet;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName: LoginRequest
 * @Author: 小飞
 * @Date: 2023/5/28 14:41
 * @Description: 请求登录
 * {
 * type: 1,
 * params: {
 * account: "yx23050001",
 * password: "123456"
 * }
 * }
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginRequest extends Packet {

    /**
     * 用户ID
     */
    private String account;
    /**
     * 用户密码
     */
    private String password;

    @Override
    public Byte getCommand() {
        return Command.LoginRequest;
    }

}
